﻿namespace MicroCloud.Entity
{
    /// <summary>
    /// 泛型设计时数据库上下文工厂(用于执行迁移)
    /// </summary>
    /// <typeparam name="TDbContext"></typeparam>
    public class DesignTimeDbContextFactory<TDbContext> : DesignTimeDbContextFactoryBase<TDbContext>
        where TDbContext : DbContext, IDbContext
    {
        #region 构造函数        
        /// <summary>
        /// 初始化一个 <see cref="DesignTimeDbContextFactory{TDbContext}"/> 类型的新实例
        /// </summary>
        public DesignTimeDbContextFactory()
            : base(null)
        { }
        
        /// <summary>
        /// 初始化一个 <see cref="DesignTimeDbContextFactory{TDbContext}"/> 类型的新实例
        /// </summary>
        /// <param name="provider">服务提供者</param>
        public DesignTimeDbContextFactory(IServiceProvider provider)
           : base(provider)
        { }

        #endregion
    }
}